<?php

namespace app\admin\model;

use think\Model;
use think\Request;
use app\common\model\BaseModel;

/**
* @property string $api_id 接口ID
* @property string $api_url 接口地址
* @property string $api_name 接口名称
*/
class Api extends BaseModel
{
    // 表名
    protected $table = 'api';
    protected $pk = 'api_id';
    const primaryKey = 'api_id';

    // 追加属性
    protected $append = [

    ];

    public static function __make(Request $request)
    {
        return (new self())->find($request->param(self::primaryKey));
    }
}
